From: Florian Müllner Date: Sat, 22 Feb 2014 23:10:50 +0000 (+0100) Subject: workspaceThumbnails: Really fix DND creating new workspaces X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~2711 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=f4607626e40b97500f18bbe719952d4c58fef83a;p=gnome-shell.git workspaceThumbnails: Really fix DND creating new workspaces The same problem spotted in commit 89a2dc71fc1ed is present in some more places, fix those as well. https://bugzilla.gnome.org/show_bug.cgi?id=724686 --- diff --git a/js/ui/workspaceThumbnail.js b/js/ui/workspaceThumbnail.js index 913ed2329..25469e341 100644 --- a/js/ui/workspaceThumbnail.js +++ b/js/ui/workspaceThumbnail.js @@ -812,9 +812,9 @@ const ThumbnailsBox = new Lang.Class({ return false; if (isWindow) - return window.get_workspace() >= newWorkspaceIndex && winActor != source; + return window.get_workspace().index() >= newWorkspaceIndex && winActor != source; else - return window.get_workspace() >= newWorkspaceIndex; + return window.get_workspace().index() >= newWorkspaceIndex; }); this._spliceIndex = newWorkspaceIndex;